n = int(input())
a =100
w_energy = a
g_energy = a
for i in range(n):
    g_energy = g_energy * 1.001
    b = i % 5
    if b<3:
        w_energy = w_energy * 1.002
    else:
        w_energy = w_energy * 0.999
print(f"{g_energy:.5f},{w_energy:.5f}")